<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPH::XmlEngine Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_s_p_h.html">SPH</a></li><li class="navelem"><a class="el" href="class_s_p_h_1_1_xml_engine.html">XmlEngine</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_s_p_h_1_1_xml_engine-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SPH::XmlEngine Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="class_s_p_h_1_1_xml_engine.html" title="XmlEngine class, in which SIMBody XML parse is used. ">XmlEngine</a> class, in which SIMBody XML parse is used.  
 <a href="class_s_p_h_1_1_xml_engine.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="xml__engine_8h_source.html">xml_engine.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4e69d6914a3a7aa6a69b90fb00d4bd55"><td class="memItemLeft" align="right" valign="top"><a id="a4e69d6914a3a7aa6a69b90fb00d4bd55"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a4e69d6914a3a7aa6a69b90fb00d4bd55">XmlEngine</a> ()</td></tr>
<tr class="memdesc:a4e69d6914a3a7aa6a69b90fb00d4bd55"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defaut constructor. <br /></td></tr>
<tr class="separator:a4e69d6914a3a7aa6a69b90fb00d4bd55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96589c0327d1affd27702d2b3bac2537"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a96589c0327d1affd27702d2b3bac2537">XmlEngine</a> (const std::string &amp;xml_name, const std::string &amp;root_tag)</td></tr>
<tr class="memdesc:a96589c0327d1affd27702d2b3bac2537"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor for XML output.  <a href="#a96589c0327d1affd27702d2b3bac2537">More...</a><br /></td></tr>
<tr class="separator:a96589c0327d1affd27702d2b3bac2537"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c8025f29766b91585e0f50f946ae72d"><td class="memItemLeft" align="right" valign="top"><a id="a3c8025f29766b91585e0f50f946ae72d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a3c8025f29766b91585e0f50f946ae72d">~XmlEngine</a> ()</td></tr>
<tr class="memdesc:a3c8025f29766b91585e0f50f946ae72d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Defaut distructor. <br /></td></tr>
<tr class="separator:a3c8025f29766b91585e0f50f946ae72d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af194ca7995d8ba08e694c8aa82e61724"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#af194ca7995d8ba08e694c8aa82e61724">CreatXmlElement</a> (const std::string &amp;ele_name)</td></tr>
<tr class="memdesc:af194ca7995d8ba08e694c8aa82e61724"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creat an Xml Element.  <a href="#af194ca7995d8ba08e694c8aa82e61724">More...</a><br /></td></tr>
<tr class="separator:af194ca7995d8ba08e694c8aa82e61724"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70c1a75241df620956d05101e8161aa1"><td class="memItemLeft" align="right" valign="top"><a id="a70c1a75241df620956d05101e8161aa1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a70c1a75241df620956d05101e8161aa1">AddElementToXmlDoc</a> ()</td></tr>
<tr class="memdesc:a70c1a75241df620956d05101e8161aa1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add existing element to root_element of Xml Doc. <br /></td></tr>
<tr class="separator:a70c1a75241df620956d05101e8161aa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a084084f1d3e20c2a3c53a7c1bbc9542d"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a084084f1d3e20c2a3c53a7c1bbc9542d"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a084084f1d3e20c2a3c53a7c1bbc9542d">AddAttributeToElement</a> (const std::string &amp;attrib_name, const T &amp;value)</td></tr>
<tr class="memdesc:a084084f1d3e20c2a3c53a7c1bbc9542d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds attribute of type string to an xml element.  <a href="#a084084f1d3e20c2a3c53a7c1bbc9542d">More...</a><br /></td></tr>
<tr class="separator:a084084f1d3e20c2a3c53a7c1bbc9542d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad80d42747bfc9de53879ee71cb482841"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#ad80d42747bfc9de53879ee71cb482841">AddAttributeToElement</a> (const std::string &amp;attrib_name, const Matd value)</td></tr>
<tr class="memdesc:ad80d42747bfc9de53879ee71cb482841"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds attribute of type matrix to an xml element.  <a href="#ad80d42747bfc9de53879ee71cb482841">More...</a><br /></td></tr>
<tr class="separator:ad80d42747bfc9de53879ee71cb482841"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40a603ed30eb53057d5f0736ffab0e97"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a40a603ed30eb53057d5f0736ffab0e97"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a40a603ed30eb53057d5f0736ffab0e97">GetRequiredAttributeValue</a> (SimTK::Xml::element_iterator &amp;ele_ite_, const std::string &amp;attrib_name)</td></tr>
<tr class="memdesc:a40a603ed30eb53057d5f0736ffab0e97"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the required int attribute vlaue of an element.  <a href="#a40a603ed30eb53057d5f0736ffab0e97">More...</a><br /></td></tr>
<tr class="separator:a40a603ed30eb53057d5f0736ffab0e97"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abef0a103494d8d749e822c944d112fe7"><td class="memItemLeft" align="right" valign="top">Matd&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#abef0a103494d8d749e822c944d112fe7">GetRequiredAttributeMatrixValue</a> (SimTK::Xml::element_iterator &amp;ele_ite_, const std::string &amp;attrib_name)</td></tr>
<tr class="memdesc:abef0a103494d8d749e822c944d112fe7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the required int attribute valaue of an element.  <a href="#abef0a103494d8d749e822c944d112fe7">More...</a><br /></td></tr>
<tr class="separator:abef0a103494d8d749e822c944d112fe7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f924cde94fd7a6a4b57c19e3dd4ac05"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a7f924cde94fd7a6a4b57c19e3dd4ac05">WriteToXmlFile</a> (const std::string &amp;filefullpath)</td></tr>
<tr class="memdesc:a7f924cde94fd7a6a4b57c19e3dd4ac05"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write to XML file.  <a href="#a7f924cde94fd7a6a4b57c19e3dd4ac05">More...</a><br /></td></tr>
<tr class="separator:a7f924cde94fd7a6a4b57c19e3dd4ac05"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7edc4e3dc4982613ea1e19f24d6a3e40"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a7edc4e3dc4982613ea1e19f24d6a3e40">LoadXmlFile</a> (const std::string &amp;filefullpath)</td></tr>
<tr class="memdesc:a7edc4e3dc4982613ea1e19f24d6a3e40"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load XML file using XML parser.  <a href="#a7edc4e3dc4982613ea1e19f24d6a3e40">More...</a><br /></td></tr>
<tr class="separator:a7edc4e3dc4982613ea1e19f24d6a3e40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75a8a5f46909e1d81c12f73e084d12ce"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a75a8a5f46909e1d81c12f73e084d12ce">ReadFromXmlFile</a> (const std::string &amp;filefullpath)</td></tr>
<tr class="memdesc:a75a8a5f46909e1d81c12f73e084d12ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read from XML file.  <a href="#a75a8a5f46909e1d81c12f73e084d12ce">More...</a><br /></td></tr>
<tr class="separator:a75a8a5f46909e1d81c12f73e084d12ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f1b1f76480772096e10f91c8ce119b9"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a4f1b1f76480772096e10f91c8ce119b9">GetRootElementTag</a> ()</td></tr>
<tr class="separator:a4f1b1f76480772096e10f91c8ce119b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a460fcf8901548235dd58b1b7dc58e445"><td class="memItemLeft" align="right" valign="top">SimTK::Xml::Document&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a460fcf8901548235dd58b1b7dc58e445">xmldoc_</a></td></tr>
<tr class="separator:a460fcf8901548235dd58b1b7dc58e445"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7d5abfca7c289fcee482634b9e94b31"><td class="memItemLeft" align="right" valign="top">SimTK::Xml::Element&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#ae7d5abfca7c289fcee482634b9e94b31">root_element_</a></td></tr>
<tr class="separator:ae7d5abfca7c289fcee482634b9e94b31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cab23a1e8805d9bce8d1ffcdd93da31"><td class="memItemLeft" align="right" valign="top">SimTK::Xml::Element *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_xml_engine.html#a3cab23a1e8805d9bce8d1ffcdd93da31">element_</a></td></tr>
<tr class="separator:a3cab23a1e8805d9bce8d1ffcdd93da31"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="class_s_p_h_1_1_xml_engine.html" title="XmlEngine class, in which SIMBody XML parse is used. ">XmlEngine</a> class, in which SIMBody XML parse is used. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a96589c0327d1affd27702d2b3bac2537"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96589c0327d1affd27702d2b3bac2537">&#9670;&nbsp;</a></span>XmlEngine()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SPH::XmlEngine::XmlEngine </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>xml_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>root_tag</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructor for XML output. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">xml_name</td><td>The name the Xml object. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">root_tag</td><td>The name of the root tag. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a084084f1d3e20c2a3c53a7c1bbc9542d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a084084f1d3e20c2a3c53a7c1bbc9542d">&#9670;&nbsp;</a></span>AddAttributeToElement() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SPH::XmlEngine::AddAttributeToElement </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>attrib_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const T &amp;&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Adds attribute of type string to an xml element. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">attrib_name</td><td>Name of the attribute. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">value_</td><td>String type value of the attribute. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad80d42747bfc9de53879ee71cb482841"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad80d42747bfc9de53879ee71cb482841">&#9670;&nbsp;</a></span>AddAttributeToElement() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SPH::XmlEngine::AddAttributeToElement </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>attrib_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const Matd&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Adds attribute of type matrix to an xml element. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">attrib_name</td><td>Name of the attribute. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>String type value of the attribute. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af194ca7995d8ba08e694c8aa82e61724"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af194ca7995d8ba08e694c8aa82e61724">&#9670;&nbsp;</a></span>CreatXmlElement()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SPH::XmlEngine::CreatXmlElement </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>ele_name</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creat an Xml Element. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ele_name</td><td>Name of the element. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="abef0a103494d8d749e822c944d112fe7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abef0a103494d8d749e822c944d112fe7">&#9670;&nbsp;</a></span>GetRequiredAttributeMatrixValue()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Matd SPH::XmlEngine::GetRequiredAttributeMatrixValue </td>
          <td>(</td>
          <td class="paramtype">SimTK::Xml::element_iterator &amp;&#160;</td>
          <td class="paramname"><em>ele_ite_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>attrib_name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get the required int attribute valaue of an element. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ele</td><td>input element. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">attrib_name</td><td>required attribute name. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Vector(in 2D or 3D) type value of required attribute. </dd></dl>

</div>
</div>
<a id="a40a603ed30eb53057d5f0736ffab0e97"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40a603ed30eb53057d5f0736ffab0e97">&#9670;&nbsp;</a></span>GetRequiredAttributeValue()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class T &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T SPH::XmlEngine::GetRequiredAttributeValue </td>
          <td>(</td>
          <td class="paramtype">SimTK::Xml::element_iterator &amp;&#160;</td>
          <td class="paramname"><em>ele_ite_</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>attrib_name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the required int attribute vlaue of an element. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">ele</td><td>input element. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">attrib_name</td><td>required attribute name. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Vector(in 2D or 3D) type value of rquaired attribute. </dd></dl>

</div>
</div>
<a id="a4f1b1f76480772096e10f91c8ce119b9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f1b1f76480772096e10f91c8ce119b9">&#9670;&nbsp;</a></span>GetRootElementTag()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string SPH::XmlEngine::GetRootElementTag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>@ Get the Tag of root element as a string </p><dl class="section return"><dt>Returns</dt><dd>Tag of root element. </dd></dl>

</div>
</div>
<a id="a7edc4e3dc4982613ea1e19f24d6a3e40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7edc4e3dc4982613ea1e19f24d6a3e40">&#9670;&nbsp;</a></span>LoadXmlFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SPH::XmlEngine::LoadXmlFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filefullpath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Load XML file using XML parser. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">filefullpath</td><td>Full path to writting file. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a75a8a5f46909e1d81c12f73e084d12ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75a8a5f46909e1d81c12f73e084d12ce">&#9670;&nbsp;</a></span>ReadFromXmlFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SPH::XmlEngine::ReadFromXmlFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filefullpath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Read from XML file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">filefullpath</td><td>Full path to writting file. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7f924cde94fd7a6a4b57c19e3dd4ac05"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f924cde94fd7a6a4b57c19e3dd4ac05">&#9670;&nbsp;</a></span>WriteToXmlFile()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SPH::XmlEngine::WriteToXmlFile </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>filefullpath</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Write to XML file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">filefullpath</td><td>Full path to writting file. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a3cab23a1e8805d9bce8d1ffcdd93da31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3cab23a1e8805d9bce8d1ffcdd93da31">&#9670;&nbsp;</a></span>element_</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimTK::Xml::Element* SPH::XmlEngine::element_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>pointer to element. </p>

</div>
</div>
<a id="ae7d5abfca7c289fcee482634b9e94b31"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7d5abfca7c289fcee482634b9e94b31">&#9670;&nbsp;</a></span>root_element_</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimTK::Xml::Element SPH::XmlEngine::root_element_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Root element of document. </p>

</div>
</div>
<a id="a460fcf8901548235dd58b1b7dc58e445"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a460fcf8901548235dd58b1b7dc58e445">&#9670;&nbsp;</a></span>xmldoc_</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SimTK::Xml::Document SPH::XmlEngine::xmldoc_</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>the xml document. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>SPHINXsys/src/shared/simbody/<a class="el" href="xml__engine_8h_source.html">xml_engine.h</a></li>
<li>SPHINXsys/src/shared/simbody/xml_engine.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
